package com.khong.baodizhen.activity;

import com.khong.baodizhen.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Spinner;

public class DBZCompanyCheckYJActivity extends Activity implements
		OnClickListener {

	private Button nextBtn;
	
	private EditText editYJ,editCS;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dbz_start_check_item);

		initView();
		fillData();
	}

	public void initView() {
		nextBtn = (Button) findViewById(R.id.btn_next);
		editYJ = (EditText) findViewById(R.id.edit_yijian);
		editCS = (EditText) findViewById(R.id.edit_chushi);
	}

	public void fillData() {
		nextBtn.setOnClickListener(this);

		String data = getIntent().getStringExtra("data");
		if (data != null) {
			nextBtn.setVisibility(View.GONE);
			editCS.setEnabled(false);
			editYJ.setEnabled(false);
			editCS.setText(getString(R.string.string_cs));
			editYJ.setText(getString(R.string.string_jcyj));
		}

	}

	@Override
	public void onClick(View v) {
		Intent intent = new Intent();
		intent.setClass(this, DBZCompanyPapersActivity.class);
		startActivity(intent);
	}

}
